mobileStartTrackingSensor
Type
command
Summary
Starts listening for readings from the named sensor.
Syntax
mobileStartTrackingSensor <sensor>, [<loosely>]
Description
Use the mobileStartTrackingSensor command to start listening for readings from a sensor.
The mobileStartTrackingSensor command starts listening for readings from the named sensor.
Parameters
Name | Type | Description |
---|---|---|
sensor | enum | The name of the sensor you wish to start using |
loosely | enum | How accurate the readings from sensors should be. The default value is false |
Examples
mobileStartTrackingSensor "location"
mobileStartTrackingSensor "heading",true
Related
command: mobileStopTrackingSensor
function: mobileCanTrackHeading, mobileCanTrackLocation, mobileCurrentHeading, mobileSensorReading, mobileCurrentLocation
message: headingChanged, accelerationChanged, locationChanged, rotationRateChanged, trackingError
Compatibility and Support
Introduced
LiveCode 5.5
OS
ios
android
Platforms
mobile